package com.hotdog.controller;

import com.hotdog.pojo.IndexInfo;
import com.hotdog.service.UpLoadService;
import com.hotdog.vo.SysResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * 响应upLoadResource服务
 * @author 郭鲁政
 */
@RestController("/fileinsert")
public class FileUploadController {
    @Autowired
    private UpLoadService upLoadService;
    @PostMapping("/uploadInfo")
    public SysResult uploadInfo (@RequestBody IndexInfo indexInfo){
        return    upLoadService.insertInfo(indexInfo);

    }
}
